<template>
  <div>
    <Button type="primary" @click="getlist">获取Idea</Button>
  </div>
</template>
<script>
export default {
  data () {
    return {}
  },
  methods: {
    getlist () {
      this.axios({
        method: 'get',
        url: '/idea'
      }).then(function (resp) {
        console.log(resp.data)
      }).catch(resp => {
        console.log('请求失败: ' + resp.status + ', ' + resp.statusText)
      })
    }
  }
}
</script>
<style scoped>
</style>
